<?php
/**
 * licenses : MIT
 * creatTime: 2020/5/13
 * author : weblinuxgame
 * filename: MsgEnum.php
 */

namespace App\Core\Enums;

/**
 * Interface MsgEnum
 * @package App\Core\Enums
 */
interface MsgEnum extends CodeEnum
{
    const UndefinedError = "未知异常";
    const ApiNotFoundMsg = "接口尚在开发中";
    const UnSupportServiceMsg = "功能尚待开发";
    const UserRegisterFailMsg = '用户注册失败';
    const UserNotExistsMsg = '用户不存在';
    const PasswordNotMatchMsg = '密码不匹配';
    const MissRequiredParamMsg = '缺失重要参数';
    const UpdateFailedMsg = '更新失败';
    const RecordExistsMsg = '记录已存在';
    const MobileNumErrorMsg = '手机号不正确';
    const UserProfileNotExistsMsg = '用户属性字段不存在';

    const MsgKvMap = [
        self::ApiNotFound => self::ApiNotFound,
        self::UnSupportService => self::UnSupportServiceMsg,
        self::UserRegisterFail => self::UserRegisterFailMsg,
        self::UserNotExists => self::UserNotExistsMsg,
        self::UserProfileNotExists => self::UserProfileNotExistsMsg,
        self::PasswordNotMatch => self::PasswordNotMatchMsg,
        self::UpdateFailed => self::UpdateFailedMsg,
        self::MissRequiredParam => self::MissRequiredParamMsg,
        self::RecordExists => self::RecordExistsMsg,
        self::MobileNumError => self::MobileNumErrorMsg,
    ];

}
